1. 想要算比较【-129,128】的数,要用a.equals(b). 因为数字用integer定义的时候,会自动转成valueof的形式。而这个形式会导致超过的部分被乱算

  1. reverse list:

  1. java中开数组没有动态的概念,所以如果长度不确定,最好用list

results matching ""

    No results matching ""